]> dgit.raspbian.org Git - gnome-shell.git/log
gnome-shell.git
5 years agoeslint: (Mostly) synchronize configuration with gjs
Florian Müllner [Thu, 12 Aug 2021 15:12:15 +0000 (17:12 +0200)]
eslint: (Mostly) synchronize configuration with gjs

In addition to the changes in this commit, gjs now
restricts the use of the Format module and initFormat.
We can't really replace those for translatable strings
until xgettext gains support for template strings, so
leave that bit out for now.

The other notable change is that gjs now requires
jsdoc comments. We can't plainly enable those options
without a massive amount of work first, but let's see
how requiring doc comments for new code goes.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1949>

5 years agoci: Include eslint-plugin-jsdoc in js image
Florian Müllner [Thu, 12 Aug 2021 21:20:21 +0000 (23:20 +0200)]
ci: Include eslint-plugin-jsdoc in js image

gjs started to require it in its config, so we need it
if we want to keep our configuration in sync.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1949>

5 years agoUpdated Czech translation
Marek Černocký [Mon, 23 Aug 2021 22:14:12 +0000 (00:14 +0200)]
Updated Czech translation

5 years agoextensions-tool: Remove GNOME Software reference from man page
Florian Müllner [Wed, 18 Aug 2021 15:20:49 +0000 (17:20 +0200)]
extensions-tool: Remove GNOME Software reference from man page

It no longer manages extensions.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1956>

5 years agomessageTray: Do not show low priority notifications
Florian Müllner [Fri, 18 Jun 2021 21:15:05 +0000 (23:15 +0200)]
messageTray: Do not show low priority notifications

Low priority notifications are meant for information that doesn't require
immediate attention, so it makes sense to not show a banner for them;
they'll still appear in the notification list in the calendar.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4265

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1893>

5 years agoUpdate Indonesian translation
Kukuh Syafaat [Sun, 22 Aug 2021 04:45:37 +0000 (04:45 +0000)]
Update Indonesian translation

5 years agoUpdate Persian translation
Danial Behzadi [Sat, 21 Aug 2021 11:26:51 +0000 (11:26 +0000)]
Update Persian translation

5 years agoUpdate Basque translation
Asier Sarasua Garmendia [Fri, 20 Aug 2021 08:19:41 +0000 (08:19 +0000)]
Update Basque translation

5 years agoUpdate Russian translation
Alexey Rubtsov [Fri, 20 Aug 2021 07:12:23 +0000 (07:12 +0000)]
Update Russian translation

5 years agowindowManager: Animate the appearance of new windows after overview closes
Daniel van Vugt [Thu, 17 Sep 2020 07:25:49 +0000 (15:25 +0800)]
windowManager: Animate the appearance of new windows after overview closes

So that the animation doesn't get skipped if the overview is visible but
in the process of closing.

In this case the overview being visible also means that it is closing,
because if it's visible and not already closing then `_shouldAnimateActor`
would have returned false and exited `_mapWindow` earlier.

Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/1814,
       https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3242

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1440>

5 years agooverview: Emit 'hidden' after it's *really* hidden
Daniel van Vugt [Thu, 17 Sep 2020 07:24:12 +0000 (15:24 +0800)]
overview: Emit 'hidden' after it's *really* hidden

Previously we would emit 'hidden' before the overview was fully hidden,
so any attempts to animate windows on that signal could still fail.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1440>

5 years agowindowManager: Allow animations to start if the overview is closing
Daniel van Vugt [Wed, 16 Sep 2020 07:03:47 +0000 (15:03 +0800)]
windowManager: Allow animations to start if the overview is closing

So the `WindowManager._mapWindow` animation doesn't get skipped if the
overview is visible but closing.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1440>

5 years agoworkspace: Ignore new windows that appear while the overview is closing
Daniel van Vugt [Wed, 16 Sep 2020 06:56:13 +0000 (14:56 +0800)]
workspace: Ignore new windows that appear while the overview is closing

This can easily happen if an app launches and maps a window faster than
the overview closes. We don't want the window clone appearing and then
suddenly disappearing in that case.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1440>

5 years agooverview: Add a 'closing' getter
Daniel van Vugt [Wed, 16 Sep 2020 06:52:19 +0000 (14:52 +0800)]
overview: Add a 'closing' getter

Which better communicates what we are checking for, and is a little more
elegant than repeatedly writing:
```
Main.overview.animationInProgress && Main.overview.visibleTarget == false
```

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1440>

5 years agoUpdate Catalan translation
Jordi Mas [Wed, 18 Aug 2021 17:13:18 +0000 (19:13 +0200)]
Update Catalan translation

5 years agomagnifier: Avoid painting a desktop that's fully occluded by its clone
Daniel van Vugt [Fri, 25 Jun 2021 09:09:06 +0000 (17:09 +0800)]
magnifier: Avoid painting a desktop that's fully occluded by its clone

This significantly reduces the render time for fullscreen zoom mode.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3305
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1899>

5 years agoUpdate Brazilian Portuguese translation
Rafael Fontenelle [Wed, 18 Aug 2021 13:27:36 +0000 (13:27 +0000)]
Update Brazilian Portuguese translation

5 years agoUpdate Portuguese translation
Hugo Carvalho [Wed, 18 Aug 2021 11:11:55 +0000 (11:11 +0000)]
Update Portuguese translation

5 years agoUpdate Basque translation
Asier Sarasua Garmendia [Wed, 18 Aug 2021 09:24:11 +0000 (09:24 +0000)]
Update Basque translation

5 years agoUpdate Occitan translation
Quentin PAGÈS [Wed, 18 Aug 2021 09:12:34 +0000 (09:12 +0000)]
Update Occitan translation

5 years agoUpdate Ukrainian translation
Yuri Chornoivan [Wed, 18 Aug 2021 06:35:57 +0000 (06:35 +0000)]
Update Ukrainian translation

5 years agoBump versiont to 41.beta
Florian Müllner [Tue, 17 Aug 2021 22:35:16 +0000 (00:35 +0200)]
Bump versiont to 41.beta

Update NEWS.

5 years agowindowMenu: Use consistent terminology
nitinosiris [Thu, 6 May 2021 15:38:23 +0000 (21:08 +0530)]
windowMenu: Use consistent terminology

Because we don't have a dock or panel to minimize to, the `minimize`
shortcut was renamed to `hide` a long time ago.

Likewise, `unmaximize` appears as `restore` in keyboard shortcuts.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4088

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1834>

5 years agoUpdated Spanish translation
Daniel Mustieles [Tue, 17 Aug 2021 11:49:29 +0000 (13:49 +0200)]
Updated Spanish translation

5 years agoappDisplay: Replace AppIconMenu
Florian Müllner [Thu, 12 Aug 2021 00:02:12 +0000 (02:02 +0200)]
appDisplay: Replace AppIconMenu

We are finally ready to share the app menu between the top bar and
context menus in the dash/app grid. Notably that means that it is
now possible to quit an app from its context menu.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2875

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1948>

5 years agoappMenu: Support launching on the non-default GPU
Florian Müllner [Wed, 11 Aug 2021 23:31:35 +0000 (01:31 +0200)]
appMenu: Support launching on the non-default GPU

Changing the GPU to launch an app on is the last feature from the
app context menu that is still missing. Add support for it now,
and we are ready for some unifying cleanup!

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1948>

5 years agoappMenu: Remove separator between "new window" and actions
Florian Müllner [Wed, 11 Aug 2021 22:33:33 +0000 (00:33 +0200)]
appMenu: Remove separator between "new window" and actions

We hide our own "New Window" item if the app itself includes a
"new-window" action. That means that the separator between the
built-in item and desktop actions introduces a small inconsistency
depending on whether a "New Window" item is provided by the desktop
action or ourselves. There's no good reason for that from a user's
perspective, so remove the separator.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1948>

5 years agoappMenu: Optionally include favorites section
Florian Müllner [Wed, 11 Aug 2021 21:50:50 +0000 (23:50 +0200)]
appMenu: Optionally include favorites section

The context menu in the overview includes actions for managing
favorites. Add those to the AppMenu class, but make it another
option as the actions would be slightly weird in the top bar menu.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1948>

5 years agoappMenu: Update "new-window" item on state changes
Florian Müllner [Thu, 12 Aug 2021 01:49:37 +0000 (03:49 +0200)]
appMenu: Update "new-window" item on state changes

Stopped apps can *always* open a new window, so before we start
using the menu for non-running apps, make sure to hide the menu
item as necessary.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1948>

5 years agoappMenu: Only show 'Quit' for running apps
Florian Müllner [Thu, 12 Aug 2021 00:47:23 +0000 (02:47 +0200)]
appMenu: Only show 'Quit' for running apps

The top bar menu always corresponds to a running app, so it made
sense to include the 'Quit' item unconditionally. That won't be
the case for the overview context menus, so handle app state changes
and show/hide the item as necessary.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1948>

5 years agoappMenu: Allow showing the window section for all windows
Florian Müllner [Thu, 12 Aug 2021 19:25:49 +0000 (21:25 +0200)]
appMenu: Allow showing the window section for all windows

Since commit fd0da9606fd2, we only show the "Open Windows" section
if there are at least two windows. That's another subtle difference
with the overview context menus, but while limiting the section to
a minimum of two windows makes sense where the menu always represents
a running app, it is useful to show the section even for single windows
in the dash/app grid.

Account for both uses cases by adding a corresponding option to the
constructor.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1948>

5 years agoappMenu: Only include non-skip-taskbar windows
Florian Müllner [Thu, 12 Aug 2021 00:34:12 +0000 (02:34 +0200)]
appMenu: Only include non-skip-taskbar windows

There's a subtle difference between the top bar menu and the app
icon context menus in the overview regarding the "Open Window"
section.

The former includes skip-taskbar windows, the latter doesn't. It
clearly doesn't make sense for the context menu to include windows
that aren't shown in the overview, but skip-taskbar windows are
likely also less useful in the top bar menu.

Just settle on the behavior of the context menus and move on.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1948>

5 years agoappMenu: Do launch animation if supported by source
Florian Müllner [Wed, 11 Aug 2021 21:54:30 +0000 (23:54 +0200)]
appMenu: Do launch animation if supported by source

Likewise any launch actions should animate the corresponding launcher
(if the menu is associated with a launcher).

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1948>

5 years agoappMenu: Hide overview when activating apps
Florian Müllner [Wed, 11 Aug 2021 20:54:11 +0000 (22:54 +0200)]
appMenu: Hide overview when activating apps

This is the expected behavior when activating a window or app. Until
now we could rely on the menu being hidden in the overview, but as
that is about to change, make sure the menu behaves as expected.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1948>

5 years agoappsMenu: Add side parameter
Florian Müllner [Wed, 11 Aug 2021 20:53:54 +0000 (22:53 +0200)]
appsMenu: Add side parameter

In order to re-use the menu in the overview, we must be able to
change the side of the arrow, so expose the parent class parameter.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1948>

5 years agoappMenu: Delay window sections update when selecting window
Florian Müllner [Thu, 12 Aug 2021 00:16:59 +0000 (02:16 +0200)]
appMenu: Delay window sections update when selecting window

App windows are ordered by recency, so a focus change (correctly)
triggers the ::window-changed signal. If we rebuild the section
immediately in response, the activating item will be destroyed
before the menu's ::activate handler, with the result that the
menu remains open.

Defer the section update in that case to allow the menu to process
the ::activate signal first.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1948>

5 years agoappMenu: Clean up on destroy
Florian Müllner [Wed, 11 Aug 2021 22:24:02 +0000 (00:24 +0200)]
appMenu: Clean up on destroy

For now the menu is only used in the top bar, where we can assume
that it exists "forever". This won't be the case when we start
reusing it elsewhere, so make sure we clean up after ourselves.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1948>

5 years agoappMenu: Split out from panel
Florian Müllner [Wed, 11 Aug 2021 17:40:52 +0000 (19:40 +0200)]
appMenu: Split out from panel

There is a big overlap between the app menu in the top bar and the
context menu of app icons. It makes sense to unify the two both
from a design- and from a code perspective, so split out the more
modern one into a separate module as basis for a shared class.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1948>

5 years agoappDisplay: Remove unnecessary unmapped handler
Florian Müllner [Wed, 11 Aug 2021 22:07:17 +0000 (00:07 +0200)]
appDisplay: Remove unnecessary unmapped handler

Since commit 35494f5d08, all menus are closed when their source
gets unmapped.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1948>

5 years agoUpdate Hebrew translation
Yaron Shahrabani [Mon, 16 Aug 2021 20:19:31 +0000 (20:19 +0000)]
Update Hebrew translation

5 years agoUpdate Romanian translation
Daniel Șerbănescu [Mon, 16 Aug 2021 17:42:24 +0000 (17:42 +0000)]
Update Romanian translation

5 years agoUpdate Persian translation
Danial Behzadi [Mon, 16 Aug 2021 12:45:26 +0000 (12:45 +0000)]
Update Persian translation

5 years agoscreenShield: Asyncify _syncInhibitor()
Sebastian Keller [Sun, 15 Aug 2021 00:18:12 +0000 (02:18 +0200)]
screenShield: Asyncify _syncInhibitor()

Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4553
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1952>

5 years agoscreenShield: Close inhibitors that finished creation after uninhibition
Sebastian Keller [Thu, 5 Aug 2021 05:22:07 +0000 (07:22 +0200)]
screenShield: Close inhibitors that finished creation after uninhibition

There was a potential issue when suspend was inhibited and immediately
uninhibited again before the creation of the inhibitor has finished.
Then the new inhibitor would be kept active.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1927>

5 years agoscreenShield: Don't unnecessarily close or recreate inhibitors
Sebastian Keller [Fri, 23 Jul 2021 15:35:00 +0000 (17:35 +0200)]
screenShield: Don't unnecessarily close or recreate inhibitors

ScreenShield::_syncInhibitor() was closing (and recreating) the
inhibitor everytime it was called, even if no change was needed.
This gets called in various places, including on property changes in
the login1 dbus object. These happen by the time logind already started
suspending at which point new inhibitors can no longer be created. It is
only waiting for existing inhibitors to be closed, so closing the
inhibitor without a new inhibitor will cause the suspending to proceed
immediately if no other inhibitors are present. This can also happen
before the lock screen is shown, which will then complete after resume.

Fix this by keeping track of the expected inhibition state and only
create or close inhibitors if there was a change to that.

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3736

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1927>

5 years agoUpdate Swedish translation
Luna Jernberg [Sun, 15 Aug 2021 15:48:27 +0000 (15:48 +0000)]
Update Swedish translation

5 years agoUpdate Indonesian translation
Kukuh Syafaat [Sun, 15 Aug 2021 11:58:14 +0000 (11:58 +0000)]
Update Indonesian translation

5 years agoextensionUtils: Add gettext convenience helpers
Florian Müllner [Sun, 12 Apr 2020 00:45:55 +0000 (02:45 +0200)]
extensionUtils: Add gettext convenience helpers

We have initTranslations() for binding an extension's
gettext domain, but nothing to help with using gettext
from an extension.

Such help would be useful though, as an extension that
calls textdomain() like a normal application would
inadvertently changes the default domain for the whole
gnome-shell process.

Instead, extensions have to use domain-specific versions
of the gettext functions:

```js
const Gettext = imports.gettext.domain('my-extension');
const _ = Gettext.gettext;
```

Make this a bit easier by adding those functions directly
to the extensions object when initTranslations() is called,
then expose helper functions for calling them.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2594

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1941>

5 years agoci: Split POTFILES check between C and JS
Florian Müllner [Mon, 9 Aug 2021 02:00:43 +0000 (04:00 +0200)]
ci: Split POTFILES check between C and JS

Regex are a crude tool for analyzing whether some code *calls* a
particular function. Spidermonkey has Reflect.parse() that returns
the AST of the passed in code, which allows for a much more precise
check for javascript.

The old script is still used for C code, where i18n-affecting changes
are much rarer.

Based heavily on Philip Chimento's mozjs migration script at
https://gitlab.gnome.org/ptomato/moz60tool.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1941>

5 years agoUpdate Russian translation
Alexey Rubtsov [Sat, 14 Aug 2021 11:56:36 +0000 (11:56 +0000)]
Update Russian translation

5 years agostatus/network: Use wwan settings panel for GSM/LTE Modems
Mohammed Sadiq [Tue, 10 Aug 2021 09:52:30 +0000 (15:22 +0530)]
status/network: Use wwan settings panel for GSM/LTE Modems

GSM/UMTS/LTE modems now have better support with wwan panel in GNOME
Settings.  So, if the modem supports, open wwan panel, otherwise
fallback to opening network panel when "Mobile Broadband Settings"
item is clicked.

See https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/583

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1942>

5 years agoiconGrid: Bail out when not on a monitor
Florian Müllner [Fri, 13 Aug 2021 01:21:47 +0000 (03:21 +0200)]
iconGrid: Bail out when not on a monitor

There shouldn't be any code that calls zoomOutActor() without
a monitor, but throwing in an early return doesn't hurt.

CID 351285.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1950>

5 years agoworkspacesView: Handle null return value
Florian Müllner [Fri, 13 Aug 2021 00:52:09 +0000 (02:52 +0200)]
workspacesView: Handle null return value

We are not going to process key events while updating views,
but coverity complains (CID 351269)...

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1950>

5 years agoappDisplay: Handle null value
Florian Müllner [Fri, 13 Aug 2021 01:09:51 +0000 (03:09 +0200)]
appDisplay: Handle null value

The value can not actually be null at that point, but it's too
hard to spot for tools like coverity:
 - before setting view, we chain up to the parent's acceptDrop()
 - that calls _canAccept(), which we override and check for the view

Still, and extra ? doesn't hurt, and hopefully will make the tooling
happy.

CID 351269

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1950>

5 years agoappDisplay: Fix dead error handling
Florian Müllner [Fri, 13 Aug 2021 01:02:05 +0000 (03:02 +0200)]
appDisplay: Fix dead error handling

gjs includes an override to turn GSettings' asserts into exceptions,
but we'll have to catch that instead of checking for a null return
value.

Spotted by coverity in CID 351268.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1950>

5 years agoboxpointer: Fix coordinate
Florian Müllner [Fri, 13 Aug 2021 00:58:33 +0000 (02:58 +0200)]
boxpointer: Fix coordinate

Eeeks. Spotted by coverity in CID 351259.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1950>

5 years agotelepathyClient: Fix a typo
Florian Müllner [Fri, 13 Aug 2021 00:39:34 +0000 (02:39 +0200)]
telepathyClient: Fix a typo

Whoops, that notifiction was never shown.

Spotted by coverity in CID 351223.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1950>

5 years agost/scroll-bar: Remove pointless condition
Florian Müllner [Fri, 13 Aug 2021 02:06:24 +0000 (04:06 +0200)]
st/scroll-bar: Remove pointless condition

Both branches are identical (which is correct - orientation or
text direction is irrelevant for the trough).

Spotted by coverity in CID 351261.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1950>

5 years agosrc/shell: Plug some small leaks
Florian Müllner [Fri, 13 Aug 2021 01:30:48 +0000 (03:30 +0200)]
src/shell: Plug some small leaks

Spotted by coverity in CID 351284 and 351288.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1950>

5 years agoUpdate Portuguese translation
Hugo Carvalho [Fri, 13 Aug 2021 10:08:22 +0000 (10:08 +0000)]
Update Portuguese translation

5 years agostatus/location: Change permission table
Florian Müllner [Wed, 11 Aug 2021 20:54:39 +0000 (22:54 +0200)]
status/location: Change permission table

There is now a location portal that provides a similar role
as our agent. Settings supports that portal in its application
panel, which allows users to revisit their choice later.

Unfortunately it uses a different permission store table, so
any permissions granted (or denied) through our agent won't
show up there.

To change that, switch to the same table as the portal/Settings.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1945>

5 years agoUpdate Occitan translation
Quentin PAGÈS [Thu, 12 Aug 2021 21:19:06 +0000 (21:19 +0000)]
Update Occitan translation

5 years agoci: Update mutter image
Florian Müllner [Thu, 12 Aug 2021 18:59:31 +0000 (20:59 +0200)]
ci: Update mutter image

Mutter now requires a development version of glib, so bump the
image to satisfy the dependency.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1947>

5 years agotheme: Adjust focus ring for entries
Jakub Steiner [Thu, 5 Aug 2021 12:23:41 +0000 (14:23 +0200)]
theme: Adjust focus ring for entries

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4527

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1936>

5 years agoworkspace: Remove skip-taskbar windows while the overview is shown
Daniel van Vugt [Fri, 23 Jul 2021 09:33:43 +0000 (17:33 +0800)]
workspace: Remove skip-taskbar windows while the overview is shown

On startup desktop-icons-ng Wayland windows have skip-taskbar==FALSE so
initially pass `_isOverviewWindow` and they get added to the overview,
which is confusing to users. However almost immediately after that they
get `meta_wayland_client_hide_from_window_list` and are removed from
future overviews. So now we respond to `notify::skip-taskbar` immediately
and prevent desktop-icons-ng appearing in the startup overview too.

This is messy and ideally we'd like to know the window type immediately
on creation, but that option only exists in X11 and not Wayland.

https://gitlab.com/rastersoft/desktop-icons-ng/-/issues/137
https://bugs.launchpad.net/bugs/1936643

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1925>

5 years agoreadme: Change "GNOME 3" to "GNOME"
Fionn Kelleher [Wed, 11 Aug 2021 14:41:15 +0000 (14:41 +0000)]
readme: Change "GNOME 3" to "GNOME"

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1944>

5 years agoUpdate Brazilian Portuguese translation
Rafael Fontenelle [Tue, 10 Aug 2021 12:41:06 +0000 (12:41 +0000)]
Update Brazilian Portuguese translation

5 years agoUpdate Chinese (China) translation
Boyuan Yang [Mon, 9 Aug 2021 19:48:23 +0000 (19:48 +0000)]
Update Chinese (China) translation

5 years agoUpdate Slovenian translation
Matej Urbančič [Mon, 9 Aug 2021 19:14:19 +0000 (19:14 +0000)]
Update Slovenian translation

5 years agoUpdate Ukrainian translation
Yuri Chornoivan [Mon, 9 Aug 2021 14:40:03 +0000 (14:40 +0000)]
Update Ukrainian translation

5 years agoappDisplay: Avoid a warning
Florian Müllner [Fri, 6 Aug 2021 16:15:40 +0000 (18:15 +0200)]
appDisplay: Avoid a warning

At least the last stable release of gjs has an issue with async
handlers for custom (i.e. defined in JS) GObject signals.

The handler still works, but evoking it prints the following warning:

  JS ERROR: Error: Could not guess unspecified GValue type

We can avoid the warning by using the addAction() convenience
method, which makes for a small nice cleanup anyway.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4531

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1938>

5 years agopowerProfiles: Tweak profile names
Florian Müllner [Fri, 6 Aug 2021 19:04:24 +0000 (21:04 +0200)]
powerProfiles: Tweak profile names

After some more discussion, we settled on slightly different
profile names.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4530

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1939>

5 years agoUpdate Indonesian translation
Kukuh Syafaat [Sun, 8 Aug 2021 13:27:17 +0000 (13:27 +0000)]
Update Indonesian translation

5 years agoUpdate Hebrew translation
Yaron Shahrabani [Sat, 7 Aug 2021 16:07:08 +0000 (16:07 +0000)]
Update Hebrew translation

5 years agoUpdate Persian translation
Danial Behzadi [Sat, 7 Aug 2021 14:52:19 +0000 (14:52 +0000)]
Update Persian translation

5 years agoUpdate Turkish translation
Emin Tufan Çetin [Fri, 6 Aug 2021 20:35:27 +0000 (20:35 +0000)]
Update Turkish translation

5 years agoUpdate Frisian translation
Tjipke van der Heide [Thu, 5 Aug 2021 12:40:30 +0000 (12:40 +0000)]
Update Frisian translation

5 years agost/icon: Only get resource-scale after peeking theme node
Florian Müllner [Wed, 4 Aug 2021 17:46:34 +0000 (19:46 +0200)]
st/icon: Only get resource-scale after peeking theme node

If an actor is not on any stage view, then it doesn't have a valid
resource scale, which will hit an assert later.

When that is the case (for example when running headless), we expect
that there is no valid theme node (yet) either, so simply moving
the clutter_actor_get_resource_scale() call after peeking at the
theme node is enough to avoid the crash.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4522

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1935>

5 years agoUpdate Brazilian Portuguese translation
Rafael Fontenelle [Wed, 4 Aug 2021 23:20:16 +0000 (23:20 +0000)]
Update Brazilian Portuguese translation

5 years agoUpdate Portuguese translation
Hugo Carvalho [Wed, 4 Aug 2021 17:06:45 +0000 (17:06 +0000)]
Update Portuguese translation

5 years agoUpdate Russian translation
Alexey Rubtsov [Tue, 3 Aug 2021 20:46:35 +0000 (20:46 +0000)]
Update Russian translation

5 years agoUpdate Ukrainian translation
Yuri Chornoivan [Mon, 2 Aug 2021 16:36:57 +0000 (16:36 +0000)]
Update Ukrainian translation

5 years agostatus/powerProfiles: Add power mode selection
Florian Müllner [Wed, 7 Jul 2021 20:05:25 +0000 (22:05 +0200)]
status/powerProfiles: Add power mode selection

Settings' power panel gained support for switchable power profiles
in GNOME 40. It's useful to have that functionality more readily
available, so expose it in the system status menu as well.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3944

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1907>

5 years agoAdd Frisian translation
Tjipke van der Heide [Mon, 2 Aug 2021 10:46:04 +0000 (10:46 +0000)]
Add Frisian translation

5 years agomagnifier: Small cleanup
Florian Müllner [Thu, 29 Jul 2021 20:17:54 +0000 (22:17 +0200)]
magnifier: Small cleanup

Use an early return instead of a big if() block to cut down on
indentation.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1932>

5 years agomagnifier: Remove unused return value
Florian Müllner [Thu, 29 Jul 2021 20:14:30 +0000 (22:14 +0200)]
magnifier: Remove unused return value

Before the introduction of PointerWatcher, the method was used as
a timeout handler. That hasn't been the case since 2012, so drop
the return value.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1932>

5 years agomagnifier: Don't query pointer unless necessary
Florian Müllner [Thu, 29 Jul 2021 19:56:57 +0000 (21:56 +0200)]
magnifier: Don't query pointer unless necessary

The PointerWatcher passes the current pointer position to every watch,
so we don't have to query the pointer again scrollToMousePos() is used
as watch callback.

While that should be the only use, be conservative and still query the
pointer when called without arguments.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1932>

5 years agoUpdate Occitan translation
Quentin PAGÈS [Sat, 31 Jul 2021 13:46:06 +0000 (13:46 +0000)]
Update Occitan translation

5 years agoUpdate Occitan translation
Quentin PAGÈS [Sat, 31 Jul 2021 13:41:51 +0000 (13:41 +0000)]
Update Occitan translation

(cherry picked from commit 668dcdf3221632d69eee86fb5aaf35dd1a705e31)

5 years agoshellEntry: Don't show "Show Password" menu if entry icon is disabled
Ray Strode [Wed, 21 Jul 2021 18:01:48 +0000 (14:01 -0400)]
shellEntry: Don't show "Show Password" menu if entry icon is disabled

Right now the Show Password menu is shown unconditionally for password
entries, ignoring the org.gnome.desktop.lockdown disable-show-password
key.

StShellEntry now honors that key for its peek icon, and there's little
reason for the peek icon and the menu to ever be out of sync.

This commit forces the menu and the icon to always be in sync, and
so makes the menu lock down work automatically, too.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/687>

5 years agost/password-entry: Honor disable-show-password key
Ray Strode [Wed, 21 Jul 2021 17:58:02 +0000 (13:58 -0400)]
st/password-entry: Honor disable-show-password key

StPasswordEntry provides an optional icon for the user to
show their password in clear text.

This commit disables that icon if password showing is locked
down.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/687>

5 years agost/settings: Add new disable-show-password setting
Ray Strode [Wed, 21 Jul 2021 17:51:53 +0000 (13:51 -0400)]
st/settings: Add new disable-show-password setting

There's now a setting

org.gnome.desktop.lockdown disable-show-password

that ostensibly lets admins prevent from users from
showing their password in password dialogs.

gnome-shell currently ignores this key.

As a first step, this commit adds the setting to StSettings.

Future commits will use the new setting.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/687>

5 years agost/settings: Fix indentation on settings keys
Ray Strode [Wed, 21 Jul 2021 17:51:53 +0000 (13:51 -0400)]
st/settings: Fix indentation on settings keys

Most of the keys are aligned, but "screen-magnifier-enabled" isn't.

This commit lines all the keys up, giving a little more breathing
room for future keys that have longer names.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/687>

5 years agost/scroll-bar: Remove unneeded style-changed handler
Jonas Dreßler [Thu, 14 Nov 2019 08:06:01 +0000 (09:06 +0100)]
st/scroll-bar: Remove unneeded style-changed handler

Same reasoning as the last commit, this is already handled in the
default vfunc override of StWidget.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/953>

5 years agost/scroll-view: Don't emit superfluous style-changed events on children
Jonas Dreßler [Thu, 14 Nov 2019 07:37:25 +0000 (08:37 +0100)]
st/scroll-view: Don't emit superfluous style-changed events on children

Since we correctly call the `style_changed` vfunc superclass at the end
of our own function anyway, the style changes will get propagated to the
children of the scrollView inside `st_widget_real_style_changed` anyway.

So remove those unneeded and quite expensive (because they cause the
theme node to be regenerated) calls to `st_widget_style_changed`.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/953>

5 years agost/icon: Chain up to parent vfunc in override
Jonas Dreßler [Thu, 14 Nov 2019 08:55:23 +0000 (09:55 +0100)]
st/icon: Chain up to parent vfunc in override

GObject vfunc overrides are always supposed to call their parent vfunc,
this was forgotten here, so fix it.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/953>

5 years agost/icon: Check icon properties for changes before regenerating texture
Jonas Dreßler [Thu, 23 Jan 2020 09:44:30 +0000 (10:44 +0100)]
st/icon: Check icon properties for changes before regenerating texture

Properly compare the new icon properties of StIcon to the old ones on
style-changes and only update the icon texture in case something
changed. This should help reduce the amount of texture cache requests
when we start emitting all "style-changed" signals again.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/953>

5 years agost/icon: Store paint scaled icon size instead of normal size
Jonas Dreßler [Thu, 21 Nov 2019 11:01:06 +0000 (18:01 +0700)]
st/icon: Store paint scaled icon size instead of normal size

This makes it easier to track size changes when the paint scale changes,
since in those cases we basically want to do the same thing as when the
normal icon size changes: Request a new texture from the cache.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/953>

5 years agoRevert "workspaceAnimation: Allow long swipes in session"
Jonas Dreßler [Fri, 30 Jul 2021 08:46:52 +0000 (10:46 +0200)]
Revert "workspaceAnimation: Allow long swipes in session"

The behavior when switching workspaces now with the touchpad gesture is
very very weird, it almost always swipes to the last workspace instead
of the next one.

So revert this change again and only swipe a single page per gesture. We
can enable long swipes again when we've figured out a proper way to
detect what the user wants (which is going to be quite challenging), see
https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4355.

This reverts commit dfae3281b9a7fe6f5ccb6e9c175591a5ce31fd73.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1933>

5 years agokeyboard: Use microseconds for notify_keyval()
Sebastian Keller [Thu, 22 Jul 2021 15:24:30 +0000 (17:24 +0200)]
keyboard: Use microseconds for notify_keyval()

ClutterVirtualInputDevice::notify_keyval() expects time to be in
microseconds but Clutter::get_current_event_time() returns the time in
milliseconds. On Wayland the generated event triggers all the warnings
in MetaDisplay::sanity_check_timestamps() due to the event time
seemingly being in the past.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1926>